import request from "@/utils/requestRes";



const AUTH_BASE_URL = "/auth";

class BreakPointAPI {

  static findFile = (params: any) => {
    return request({
      url: '/fileUploadAndDownload/findFile',
      method: 'get',
      params
    })
  }


  static breakpointContinue = (data: any) => {
    return request({
      url: '/fileUploadAndDownload/breakpointContinue',
      method: 'post',
      // donNotShowLoading: true,
      headers: { 'Content-Type': 'multipart/form-data' },
      data
    })
  }

  static breakpointContinueFinish = (params: any) => {
    return request({
      url: '/fileUploadAndDownload/breakpointContinueFinish',
      method: 'post',
      params
    })
  }

  static removeChunk = (data: any, params: any) => {
    return request({
      url: '/fileUploadAndDownload/removeChunk',
      method: 'post',
      data,
      params
    })
  }

  static finishGetTranscodeRecord = (data: any) => {
    return request({
      url: '/fileUploadAndDownload/finishGetTranscodeRecord',
      method: 'GET',
      params: data
    })
  }

  static breakpointContinueFinishAudio = (data) => {
    return request({
      url: '/fileUploadAndDownload/breakpointContinueFinishAudio',
      method: 'get',
      params: data
    })
  }


}





export default BreakPointAPI;
